package org.eoti.ai.genetic.ga;

/**
 * The MIT License
 * <p/>
 * Copyright (c) 2009 Malachi de AElfweald (malachid@gmail.com)
 * <p/>
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to the following conditions:
 * <p/>
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
 * Software.
 * <p/>
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

/**
 * LOCUS: Position of a GENE in a CHROMOSOME (plural loci)
 *
 * Position matters a great deal. While it would be very easy for a GA program to skim
 * over the Locus, or simply just use an index (which is more like real-life), we will
 * use an OOP approach so that we can easily do searching, sorting, printing, etc...
 *
 * Interesting notes from Wikipedia:
 * The chromosomal locus of a gene might be written "6p21.3"
 * Diploid and polyploid cells whose chromosomes have the same allele at some locus are called homozygous,
 * while those that have different alleles at a locus, heterozygous.
 * http://en.wikipedia.org/wiki/Locus_%28genetics%29
 *
 * The place on a chromosome where a specific gene is located, a kind of address for the gene.
 * The plural is "loci," not "locuses."
 * http://www.genome.gov/glossary.cfm?key=locus
 */
public class Locus
{
	private String locusName, chromosomeName;
	private int genePosition;
	
	public Locus(String locusName, String chromosomeName, int genePosition)
	{
		this.locusName = locusName;
		this.chromosomeName = chromosomeName;
		this.genePosition = genePosition;
	}

	public String getLocusName(){return locusName;}
	public String getChromosomeName(){return chromosomeName;}
	public int getGenePosition(){return genePosition;}
}
